class CreateAdminUsersPermissions < ActiveRecord::Migration
  def change
    create_table :admin_users_permissions, id: false do |t|
      t.references :user
      t.references :permission
    end
    add_index(:admin_users_permissions, [:user_id, :permission_id])
  end
end
